home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / varia / silo.lha / silo / Event.h < prev    next >
C/C++ Source or Header  |  1993-08-08  |  763b  |  30 lines

  1. /* $Author: ecsv38 $ $Date: 90/08/21 14:46:26 $ $Revision: 1.1 $ */
  2. /* (c) S. Manoharan  sam@lfcs.edinburgh.ac.uk */
  3.  
  4. #ifndef Event_H
  5. #define Event_H
  6.  
  7. class Event; class Entity;
  8.  
  9. class Event {
  10. private:
  11.    int event_id;
  12.    int event_type;
  13.    double etime;
  14.    Entity *bywho;
  15. protected:
  16. public:
  17.    Event(const int ev_type = 0);
  18.    virtual ~Event()    { }
  19.  
  20.    virtual int id() const            { return event_id; }
  21.    virtual void type(const int n)        { event_type = n; }
  22.    virtual int type() const            { return event_type; }
  23.    virtual void eventTime(const double t)    { etime = t; }
  24.    virtual double eventTime() const        { return etime; }
  25.    virtual void scheduled_by(Entity *const who)    { bywho = who; }
  26.    virtual Entity *scheduled_by() const        { return bywho; }
  27. };
  28.  
  29. #endif  Event_H
  30.